Skip to content

Conversation

@rahulchavan888
Copy link

  • fix error on master 'The method setHttpClient(HttpClient) in the type HttpComponentsClientHttpRequestFactory is not applicable for the arguments (CloseableHttpClient)',
  • in spring version to 6.1.14 and other Dependencies version
  • Java version support as Spring Framework 6.1.x: JDK 17 to 23

- fix error on master 'The method setHttpClient(HttpClient) in the type HttpComponentsClientHttpRequestFactory is not applicable for the arguments (CloseableHttpClient)',
- in spring version to 6.1.14 and other Dependencies version
- Java version support as Spring Framework 6.1.x: JDK 17 to 23
headers.remove("Content-Length");

RequestEntity<Resource> requestEntity = new RequestEntity<>(resource,
byte[] bytes = resource.getContentAsByteArray();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to Change into byte[] because without Content-Length header upload result was corrupted file
so used byte[] bytes = resource.getContentAsByteArray(); to get file upload size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant